home *** CD-ROM | disk | FTP | other *** search
Wrap
raw *:* { if (%rawreveal == on) { if ($window(@RawáReveal) == $null) window -a @RawáReveal echo @RawáReveal $nick $+ : $numeric $1- } } on 1:SERVERMODE:# { if (%netsplit == on) { if ($form(other,splitrejoin)) iecho $readini %formats other splitrejoin else iecho Netsplit rejoin detected on $hc($nick) at $hc($atime) $+ . } } on 1:SERVEROP:# { if (%netsplit == on) { if (%splitin != $nick) { set %splitin $nick if (%netjoin == on) { if ($form(other,splitrejoin)) iecho $readini %formats other splitrejoin else iecho Netsplit rejoin detected on $hc($nick) at $hc($atime) $+ . write -c $tp(wholeft.txt) set %netjoin off .timer 1 10 set %netjoin on } } unset %split* tsound rejoin } } on 1:DNS { if (%dnsevent == off) { unset %dnsevent | return } elseif (%spoofchk.nick) { if (%spoofchk.chkip != $iaddress) { if ($form(other,spoofed)) { iecho $readini %formats other spoofed if ($form(other,spoofed2)) iecho $readini %formats other spoofed2 if ($form(other,spoofed3)) iecho $readini %formats other spoofed3 } else { iecho $hc(%spoofchk.nick) may have a spoofed hostname. iecho $hc(%spoofchk.nick) $+ 's real IP address is $ac(%spoofchk.chkip) $+ . } if ($com.opchannels(%spoofchk.nick)) { set %f11cmd ckb %spoofchk.nick spoofed hostname if ($form(other,spoofedkb)) iecho $readini %formats other spoofedkb else iecho Press F11 to kickban from all channels. } } else { if ($form(other,notspoofed)) iecho $readini %formats other notspoofed else iecho $hc(%spoofchk.nick) does not have a spoofed hostname. } unset %spoofchk* } elseif (%nickfind == on) { unset %nickfind if ($naddress) nickfind $naddress else nickfind $iaddress 1 } elseif ($raddress == $null) { if ($window(@DNS)) { if ($form(other,noresolve)) echo @DNS %h $readini %formats other noresolve else echo @DNS %h Unable to resolve $hc( [ [ $naddress ] $+ [ $iaddress ] ] ) echo @DNS á } else { if ($form(other,noresolve)) iecho $readini %formats other noresolve else iecho Unable to resolve $hc( [ [ $naddress ] $+ [ $iaddress ] ] ) } } else { if ($window(@DNS)) { if ($form(other,resolve)) echo @DNS %h $readini %formats other resolve else echo @DNS %h Resolved $hc($iaddress) to $hc($naddress) echo @DNS á } else { if (%copydns == on) clipboard $iaddress if ($form(other,resolve)) iecho $readini %formats other resolve else iecho Resolved $hc($iaddress) to $hc($naddress) } } } on 1:CHAT:Enter your password. { if ((%botautopass == on) && (($chkflag($usr($nick),*,b)) && ($botpass($usr($nick))))) .msg =$nick $botpass($usr($nick)) } on 1:TOPIC:# { tsound topic } on 1:NICK { if ($nick == $me) tsound nick } on 1:PART:# { if (%autocycle == on) .timer 1 0 doquitcheck if ($chan == %idlechan) { timoff %idlectimer idlectimer if ($exists($chan($chan).logfile)) .timer 1 0 .remove $chan($chan).logfile } } on 1:FILERCVD:* { var %a = 1, %z = ircN.dccstatus if ($dialog(%z)) .timer 1 0 dstat -u tsound fileget while ($get(%a)) { if (($nick == $get(%a)) && ($nopath($filename) == $get(%a).file)) break inc %a } if ($get(%a) == $null) return if ($get(%a).cps == n/a) return if ($form(dcc,getdone)) iecho $readini %formats dcc getdone else iecho $hc($filename) $rbrk($alof($file($filename).size)) received from $u($hc($nick)) in $iduration($get(%a).secs) ( $+ $kps($get(%a).cps) $+ kb/s) [open-F11/goto-F12/delete-sF3] set %f11cmd run $filename set %f12cmd run $nofile($filename) set %sf3cmd remove $filename } on 1:FILESENT:* { var %a = 1, %z = ircN.dccstatus if ($dialog(%z)) .timer 1 0 dstat -u tsound filesent while ($send(%a)) { if (($nick == $send(%a)) && ($nopath($filename) == $send(%a).file)) break inc %a } if ($send(%a) == $null) return if ($send(%a).cps == n/a) return if ($form(dcc,send-done)) iecho $readini %formats dcc send-done else iecho $hc($filename) $rbrk($alof($file($filename).size)) sent to $u($hc($nick)) in $iduration($send(%a).secs) ( $+ $kps($send(%a).cps) $+ kb/s) } on @1:JOIN:# { if ((%clonescan == on) && ($ialchan($address($nick,2),$chan,2)) && ($isvalidchan(%clonechannels,$chan))) { set %clone1 $ialchan($address($nick,2),$chan,1).nick set %clone2 $ialchan($address($nick,2),$chan,2).nick if ((%clone1 != $null) && (%clone2 != $null)) { if (($ulevel >= 40) && (%clusrkick != on)) return if ((%clopkick != on) && ((%clone1 isop $chan) || (%clone2 isop $chan))) return if (%clonelevel < 3) { set %clonenicks $sc(%clone1) and $sc(%clone2) iiecho . $+ $str(-,50) $+ . iiecho $vl ALERT! type $fix(36,clones) $vl iiecho $vl $+ $str(-,50) $+ $vl iiecho $vl Nicks: $fix(42,%clonenicks) $+ $vl iiecho $vl Host: $fix(43,$address($nick,2)) $+ $vl iiecho $vl F11: kick $fix(39,%clonenicks) $+ $vl iiecho $vl F12: kickban $fix(36,%clonenicks) $+ $vl iiecho ' $+ $str(-,50) $+ ' set %f11cmd fk $chan $address($nick,2) Clone Kick of $address($nick,2) set %f12cmd fkb $chan $address($nick,2) Clone KB of $address($nick,2) set %f11 off set %f12 off .timer 1 7 set %f11 on .timer 1 7 set %f12 on } if (%clonelevel == 2) { qnotice %clone1 Clones are not permitted in this channel. If %clone2 is your ghost, please notify an op or part the channel. qnotice %clone2 Clones are not permitted in this channel. If %clone1 is your ghost, please notify an op or part the channel. } elseif (%clonelevel == 3) fk $chan $address($nick,2) Clone AutoKick of $address($nick,2) elseif (%clonelevel == 4) fkb $chan $address($nick,2) Clone AutoKB of $address($nick,2) } } } on @1:DEVOICE:# { if (($chkflag($usr($vnick),$chan,f)) && ($chkflag($usr($vnick),$chan,v)) && ($nick != $vnick) && ($chkflag($usr($nick),$chan,m) == $false) && ($chkflag($usr($nick),$chan,b) == $false)) { mode $chan +v $vnick qnotice $nick Sorry, $b($vnick) is protected. } } on 1:DEOP:# { if (($opnick == $me) && ($nick != $me) && ($chkflag($usr($nick),$chan,m) == $false) && ($chkflag($usr($nick),$chan,b) == $false)) { get.bot.ops $chan return } if ($me !isop $chan) return if (($chkflag($usr($opnick),*,b)) && (%reopbot == on) && ($chkflag($usr($nick),$chan,m) == $false) && ($chkflag($usr($nick),$chan,b) == $false)) mode $chan +o $opnick if (($chkflag($usr($nick),*,b)) && (%botdeop == on)) mode $chan +v $opnick if (($chkflag($usr($opnick),$chan,f)) && ($chkflag($usr($opnick),$chan,o)) && ($nick != $opnick) && ($chkflag($usr($nick),$chan,m) == $false) && ($chkflag($usr($nick),$chan,b) == $false)) { if (%protdeop == on) mode $chan +o-o $opnick $nick else mode $chan +o $opnick qnotice $nick Sorry, $b($opnick) is protected. } } on @1:OP:# { if (((%strictops == on) && ($isvalidchan(%strictchans,$chan)) && ($chkflag($usr($nick),$chan,m) == $false) && ($chkflag($usr($opnick),$chan,o) == $false)) || ($chkflag($usr($opnick),$chan,d))) { mode $chan -o $opnick qnotice $nick Sorry, but $opnick cannot have ops in $chan $+ . qnotice $opnick Sorry, but you cannot have ops in $chan $+ . } } on 1:KICK:# { if (%autocycle == on) .timer 1 0 doquitcheck if (($me isop $chan) && ($knick != $me)) { if (($nick != $me) && (%f12 == on) && (i isin $gettok($chan($chan).mode,1,32))) { set %f12 off .timer 1 5 set %f12 on set %f12cmd invite $knick $chan if ($chan != $active) { if ($form(other,chankick)) iecho $readini %formats other chankick else iecho $hc(KICK) $brkt($chan) $+ : $hc($knick) by $hc($nick) ( $+ $1- $+ ) } if ($form(other,kickinv)) iecho $readini %formats other kickinv else iecho To invite $hc($knick) press $hc(F12) $+ . } elseif (($chkflag($usr($knick),$chan,f)) && ($chkflag($usr($nick),$chan,m) == $false) && ($chkflag($usr($nick),$chan,b) == $false)) { .quote invite $knick $chan if (%protdeop == on) mode $chan -o $nick qnotice $nick Sorry, $b($knick) is protected. } } elseif ($knick == $me) { set %f11cmd join $chan if ($chan != $active) { if ($form(other,kicked)) iecho $readini %formats other kicked else iecho $hc(KICK) $brkt($chan) $+ : You were kicked by $hc($nick) ( $+ $1- $+ ) } if ($form(other,kickedjoin)) iecho $readini %formats other kickedjoin else iecho To rejoin press $hc(F11) $+ . set %jointime $ticks tsound kicked } } on 1:ACTION:*:? { set %msgrec * * $+ $nick $+ ( $+ $address $+ )* $1- set %lsmsg $nick if ($away) { if (%clsmsg == on) .timer 1 1 close -m $nick if (%msglog == on) { if ($a.msgno($nick) == 0) { writeini -n $td(msg.txt) $nick msgno 1 writeini -n $td(msg.txt) $nick m1 * $nick $strip($1-) writeini -n $td(msg.txt) $nick act1 yes writeini -n $td(msg.txt) $nick d1 $ctime } else { set %tmp.m $pls(1,$a.msgno($nick)) writeini -n $td(msg.txt) $nick msgno %tmp.m writeini -n $td(msg.txt) $nick m $+ %tmp.m * $nick $strip($1-) writeini -n $td(msg.txt) $nick act $+ %tmp.m yes writeini -n $td(msg.txt) $nick d $+ %tmp.m $ctime unset %tmp.m } if ($a.numsg == 0) writeini -n $td(msg.txt) messages totalnumsg 1 else writeini -n $td(msg.txt) messages totalnumsg $pls(1,$a.numsg) if ($readini $td(msg.txt) messages $nick == $null) { if ($a.numnk) writeini -n $td(msg.txt) messages totalnumnk $pls(1,$a.numnk) else writeini -n $td(msg.txt) messages totalnumnk 1 writeini -n $td(msg.txt) messages $nick yes writeini -n $td(msg.txt) messages nicknumber $+ [ $a.numnk ] $nick } writeini -n $td(msg.txt) $nick ldate $ctime writeini -n $td(msg.txt) $nick addy $address writeini -n $td(msg.txt) messages lastrecnick $nick writeini -n $td(msg.txt) messages lastrecmsg $strip($1-) writeini -n $td(msg.txt) messages lastrecaddy $address writeini -n $td(msg.txt) messages lastrecdate $ctime tb } if ($findtok(%knowaway,$nick,1,44) == $null) { set %knowaway $addtok(%knowaway,$nick,44) qnotice $nick Your message has been recorded, away for $gone ( $+ $b(%awaymsg) $+ ) $e-mail($email) $uin(%uin) } } tsound msg } on 1:TEXT:*:? { if ((%decrypt == on) && ($1 == ]) && ($2 != $null)) { crypt 1 %encryptpw $2- echo -ti2 $nick < $+ $nick $+ : $+ $hc(crypt) $+ : $+ $sc(%encryptpw) $+ > $result } set %msgrec * $+ $nick $+ ( $+ $address $+ )* $1- set %lsmsg $nick if ($away) { if (%clsmsg == on) .timer 1 1 close -m $nick if (%msglog == on) { if ($a.msgno($nick) == 0) { writeini -n $td(msg.txt) $nick msgno 1 writeini -n $td(msg.txt) $nick m1 $strip($1-) writeini -n $td(msg.txt) $nick d1 $ctime } else { set %tmp.m $pls(1,$a.msgno($nick)) writeini -n $td(msg.txt) $nick msgno %tmp.m writeini -n $td(msg.txt) $nick m $+ %tmp.m $strip($1-) writeini -n $td(msg.txt) $nick d $+ %tmp.m $ctime unset %tmp.m } if ($a.numsg == 0) writeini -n $td(msg.txt) messages totalnumsg 1 else writeini -n $td(msg.txt) messages totalnumsg $pls(1,$a.numsg) if ($readini $td(msg.txt) messages $nick == $null) { if ($a.numnk) writeini -n $td(msg.txt) messages totalnumnk $pls(1,$a.numnk) else writeini -n $td(msg.txt) messages totalnumnk 1 writeini -n $td(msg.txt) messages $nick yes writeini -n $td(msg.txt) messages nicknumber $+ [ $a.numnk ] $nick } writeini -n $td(msg.txt) $nick ldate $ctime writeini -n $td(msg.txt) $nick addy $address writeini -n $td(msg.txt) messages lastrecnick $nick writeini -n $td(msg.txt) messages lastrecmsg $strip($1-) writeini -n $td(msg.txt) messages lastrecaddy $address writeini -n $td(msg.txt) messages lastrecdate $ctime tb } if ($findtok(%knowaway,$nick,1,44) == $null) { set %knowaway $addtok(%knowaway,$nick,44) qnotice $nick Your message has been recorded, away for $gone ( $+ $b(%awaymsg) $+ ) $e-mail($email) $uin(%uin) } } tsound msg } on 1:NOTICE:*:? { set %notrec - $+ $nick $+ ( $+ $address $+ )- $1- tsound notice } on @40:TEXT:*:# { if ($nick isop $chan) return if (($chkflag($usr($nick),$chan,o)) && ($chkflag($usr($nick),$chan,a))) mode $chan +o $nick if ($nick isvo $chan) return if ($chkflag($usr($nick),$chan,v)) mode $chan +v $nick } on +@20:TEXT:*:# { if ($sd($nick,$chan)) { set %tmp $readini -n bans.ini $ulist($fulladdress,20,1) reason .quote mode $chan +b $ulist($fulladdress,20,1) $+ $crlf $+ kick $chan $nick :banned: $deltok(%tmp,1,32) } } on @40:ACTION:*:# { if ($nick isop $chan) return if (($chkflag($usr($nick),$chan,o)) && ($chkflag($usr($nick),$chan,a))) mode $chan +o $nick if ($nick isvo $chan) return if ($chkflag($usr($nick),$chan,v)) mode $chan +v $nick } on +@20:ACTION:*:# { if ($sd($nick,$chan)) { set %tmp $readini -n users.ini $ulist($fulladdress,20,1) reason .quote mode $chan +b $ulist($fulladdress,20,1) $+ $crlf $+ kick $chan $nick :banned: $deltok(%tmp,1,32) } } menu @Whois { exit { set %whloc $swlc(@Whois) | window -c @Whois } }